﻿<%@ Page Title="" Language="C#" MasterPageFile="~/View/Master/Main.Master" AutoEventWireup="true" CodeBehind="InventoryView.aspx.cs" Inherits="CH.FourBoards.LagerWalti.WebFrontEnd.View.Warehouse.InventoryView" %>

<asp:Content runat="server" ContentPlaceHolderID="MainContent">

    <div class="col-sm-3 col-md-2 sidebar">
        <ul class="nav nav-sidebar">
            <asp:Repeater runat="server" ID="MenuRepeater">
                <ItemTemplate>
                    <li <%# DataBinder.Eval(Container.DataItem, "Attributes") %>>
                        <a href="<%# DataBinder.Eval(Container.DataItem, "RecordUrl") %>"><%# DataBinder.Eval(Container.DataItem, "Text") %></a>
                    </li>
                </ItemTemplate>
            </asp:Repeater>
        </ul>
    </div>


    <div class="container">
        <h1 class="page-header">Inventory - <%= View %></h1>

        <div class="table-responsive">



            <table class="table table-hover grouped">
                <thead>
                    <tr>
                        <th></th>
                        <th>Product</th>
                        <th>Stock</th>
                    </tr>
                </thead>
                <tbody>
                    <asp:Repeater runat="server" ID="RecordSetRepeater">
                        <ItemTemplate>
                            <tr class="group">
                                <td colspan="3"><%# DataBinder.Eval(Container.DataItem, "CategoryName") %></td>
                                <asp:Repeater runat="server" ID="ItemRepeater">
                                    <ItemTemplate>
                                        <tr <%# DataBinder.Eval(Container.DataItem, "RowAttributes") %> data-record-url="<%# DataBinder.Eval(Container.DataItem, "RecordUrl") %>">
                                            <td></td>
                                            <td><%# DataBinder.Eval(Container.DataItem, "Product") %></td>
                                            <td><%# DataBinder.Eval(Container.DataItem, "Stock") %></td>
                                        </tr>
                                    </ItemTemplate>
                                </asp:Repeater>
                            </tr>
                        </ItemTemplate>

                    </asp:Repeater>
                </tbody>
            </table>


        </div>
    </div>

</asp:Content>
